<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
    </head>
    <body>
        <div>
            <table border="1">
                <tr>
                    <th>id</th>
                    <th>title</th>
                    <th>body</th>
                    <th>分类</th>
                    <th>添加时间</th>
                </tr>
                    <tr>
                        <td><?php echo ($lists['id']); ?></td>             <!--<td><?php print $lists['id'];?></td>-->                  
                        <td><?php echo ($lists['title']); ?></td>          <!--<td><?php print $lists['id'];?></td>-->      
                        <td><?php echo ($lists['body']); ?></td>           <!--<td><?php print $lists['id'];?></td>-->                              
                        <td><?php if($lists['terms']=="1"){ echo"军事新闻";} else{echo "娱乐新闻";}?>
                        </td>
                        <td><?php print date("Y-m-d H:i:s",$lists['create_time']);?></td>
                    </tr>
            </table>
            <a href="<?php echo U('Home/News/lists')?>">返回</a>
        </div>
    </body>
</html>